package com.g2room.driving.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.g2room.driving.mapper.SlideMapper;
import com.g2room.driving.model.po.Slide;

@Service
public class SlideService {
	@Autowired
	private SlideMapper slideMapper;
	
	/**
	 * 根据id获取数据
	 * @param id
	 * @return
	 */
	public Slide getById(Integer id) {
		return slideMapper.getById(id);
	}
	
	/**
	 * 查询所有数据
	 * @return
	 */
	public List<Slide> getAll() {
		return slideMapper.getAll();
	}
}
